package com.jinxin.platform.cdsmsmgr.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * (CdsmsmgrTemplateInfo)实体类
 *
 * @author makejava
 * @since 2023-06-28 09:00:42
 */
public class CdsmsmgrTemplateInfo implements Serializable {
    private static final long serialVersionUID = 982372661411876157L;
    /**
    * 模板id
    */
    private Long id;
    /**
    * 模板code
    */
    private String code;
    /**
    * 0验证码1短信通知2推广短信
    */
    private Integer type;
    /**
    * 模板名称
    */
    private String name;
    /**
    * 模板内容
    */
    private String content;
    /**
    * 申请说明
    */
    private String explain;
    /**
    * 审核状态0审核中1审核通过2审核不通过
    */
    private Integer status;
    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;
    /**
    * 添加人员
    */
    private String applyUser;
    /**
    * 审核备注
    */
    private String reason;
    /**
    * 短信账号类型1阿里云2腾讯
    */
    private Integer accountType;
    /**
    * 是否删除1是2否
    */
    private Integer isDel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getApplyUser() {
        return applyUser;
    }

    public void setApplyUser(String applyUser) {
        this.applyUser = applyUser;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

}